package com.zqwh.xtool.domain;

import com.zqwh.xtool.enums.CheckStatus;
import com.zqwh.xtool.enums.StockStatus;

public class LendItem implements Comparable<LendItem> {
    private String stockNo;
    private String toolName;
    private String toolSpec;
    private String toolDesc;
    private Boolean hasRFID;
    private Boolean hasLent;
    private String userName;
    private StockStatus status;
    private CheckStatus checkStatus;
    private String epc;
    private Integer position;
    private Boolean selected;

    public String getStockNo() {
        return stockNo;
    }

    public void setStockNo(String stockNo) {
        this.stockNo = stockNo;
    }

    public String getToolName() {
        return toolName;
    }

    public void setToolName(String toolName) {
        this.toolName = toolName;
    }

    public String getToolSpec() {
        return toolSpec;
    }

    public void setToolSpec(String toolSpec) {
        this.toolSpec = toolSpec;
    }

    public String getToolDesc() {
        return toolDesc;
    }

    public void setToolDesc(String toolDesc) {
        this.toolDesc = toolDesc;
    }

    public Boolean getHasRFID() {
        return hasRFID;
    }

    public void setHasRFID(Boolean hasRFID) {
        this.hasRFID = hasRFID;
    }

    public Boolean getHasLent() {
        return hasLent;
    }

    public void setHasLent(Boolean hasLent) {
        this.hasLent = hasLent;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public StockStatus getStatus() {
        return status;
    }

    public void setStatus(StockStatus status) {
        this.status = status;
    }

    public CheckStatus getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(CheckStatus checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getEpc() {
        return epc;
    }

    public void setEpc(String epc) {
        this.epc = epc;
    }

    public Integer getPosition() {
        return position;
    }

    public void setPosition(Integer position) {
        this.position = position;
    }

    public Boolean getSelected() {
        return selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected;
    }

    @Override
    public String toString() {
        return "LendItem{" +
                "stockNo='" + stockNo + '\'' +
                ", toolName='" + toolName + '\'' +
                ", toolSpec='" + toolSpec + '\'' +
                ", toolDesc='" + toolDesc + '\'' +
                ", hasRFID=" + hasRFID +
                ", hasLent=" + hasLent +
                ", userName='" + userName + '\'' +
                ", status=" + status +
                ", checkStatus=" + checkStatus +
                ", epc='" + epc + '\'' +
                ", position=" + position +
                ", selected=" + selected +
                '}';
    }

    @Override
    public int compareTo(LendItem o) {
        return this.getPosition().compareTo(o.getPosition());
    }
}
